/*
 * Created on Sep 19, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package edu.mse.camel.client.whiteboard.gef.ui.freehandwriting;

import org.eclipse.gef.SharedImages;
import org.eclipse.gef.Tool;
import org.eclipse.gef.palette.ToolEntry;
import org.eclipse.swt.graphics.Color;


public class FreeHandwritingToolEntry extends ToolEntry {

	private Color color;
	
    public FreeHandwritingToolEntry(String label, String shortDesc, Color color) {
    	super(label, shortDesc, 
                SharedImages.DESC_SELECTION_TOOL_16, SharedImages.DESC_SELECTION_TOOL_24);
        this.color = color;
        setDescription("Sketch in my own color");       
        setUserModificationPermission(PERMISSION_NO_MODIFICATION);
        
     }
    
    public Tool createTool()
    {
         return new FreeHandwritingTool(color);
    }
}
